using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Markup;

namespace WPFTemplateLib.WpfConverters.Core
{
	/// <summary>
	/// 多值转换器基类
	/// </summary>
	public abstract class MultiValueConverterBase : MarkupExtension, IMultiValueConverter
	{
		/// <inheritdoc />
		public override object ProvideValue(IServiceProvider serviceProvider)
		{
			return this;
		}

		/// <inheritdoc />
		public abstract object Convert(object[] values, Type targetType, object parameter, CultureInfo culture);

		/// <inheritdoc />
		public virtual object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
		{
			throw new NotImplementedException();
		}
	}
}
